package com.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.pojo.dto.ReviewDTO;
import com.blog.pojo.entity.PageBean;
import com.blog.pojo.entity.Review;
import com.blog.pojo.vo.ReviewVO;

import java.util.List;

public interface ReviewService extends IService<Review> {
    PageBean<ReviewVO> getReviewPage(Integer currentPage, Integer pageSize,
                                     String articleTitle, String content, Long articleId);

    void updateReview(ReviewDTO reviewDTO);

    void deleteReview(Long id);

    void deleteReviews(List<Long> ids);

    Long getReviewCount();

    void addReview(ReviewDTO reviewDTO);
}
